<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title><g:message code="title.login"/></title>
    </head>
    
    <body>
		<div class="navButtonsTop rounded-corners">
			<h1 class="title"><g:message code="title.login"/></h1>
		</div>
				
		<g:form controller="autenticate" action="login">
		   	<div id="login" class="element">
		   	
		   		<g:hasErrors bean="${userInstance}">
		   			<div class="errors rounded-corners"><g:renderErrors bean="${userInstance}" as="list" /></div>
		   		</g:hasErrors>
		   	
		   		<div class="tableLogin">
					<table>
						<tbody>
					   		<tr>
					   			<td class="name">
					   				<label for="alias"><g:message code="default.label.alias"/>:</label>
					   			</td>
					   			<td class="value requiredField ${hasErrors(bean: userInstance, field: 'alias', 'errors')}">
					   				<g:textField id="alias" class="focus" name="alias" value="${fieldValue(bean: userInstance, field: 'alias')}" />
					   			</td>
					   		</tr>
					   		<tr>
							   <td class="name">
								   <label for="password"><g:message code="default.label.password"/>:</label>
					   			</td>
					   			<td class="value requiredField ${hasErrors(bean: userInstance, field: 'password', 'errors')}">
					   				<g:passwordField name="password" value="${fieldValue(bean: userInstance, field: 'password')}" />
					   			</td>
					   		</tr>
					   	</tbody>
					</table>
				</div>
			</div>
		            
			<div class="navButtons rounded-corners">
				<div class="left">
					<g:actionSubmit class="login" action="login" value="${message(code:'default.button.login')}" />
		           	<g:actionSubmit class="reminderPassword" action="reminderPassword" value="${message(code:'default.button.reminder.password')}"/>
				</div>
		          	
		       	<div class="right">
		       		<g:link class="cancel" url="[controller:'note', action:'list']">${message(code:'default.button.back')}</g:link>
		       	</div>
		   	</div>
		</g:form>
    </body>
</html>